home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / msdos / raytrace / rt800 / mol2scn.bat < prev    next >
DOS Batch File  |  1992-08-10  |  458b  |  23 lines

  1. @echo off
  2. set name=%0
  3. if "%1" == "" goto params
  4. if "%2" == "" goto params
  5. if not "%3" == "" goto params
  6. if not exist %1 goto error1
  7. if not exist %2 goto error2
  8. type %1 >tmp
  9. type %2 >>tmp
  10. awk -f lowcase.awk tmp|sed "1,$s/^ //"|awk -f mol2scn.awk
  11. goto end
  12. :params
  13. echo %name%: usage is "%name% {atomdef_file mol_file} [>scn_file]"
  14. goto end
  15. :error2
  16. shift
  17. :error1
  18. echo %name%: %1 not found
  19. goto end
  20. :end
  21. if exist tmp del tmp >nul
  22. set name=
  23.